//
//  CancelOrederRequest.swift
//  Exchange
//
//  Created by 孟祥群 on 2018/7/13.
//  Copyright © 2018年 common. All rights reserved.
//

import UIKit

class CancelOrederRequest: BaseRequest {
    var isCoinOrder:Bool = false
    override func path() -> String {
        if isCoinOrder {
        return Api.Exchange.cancelOrder
        }else {
            return Api.Leveraged.leverCancel
        }
    }
    override func method() -> HTTPMethodType {
        if isCoinOrder {
            return .post
        }
        return .get
    }
    override func openIndicator() -> Bool {
        return true
    }

}
